package org.sample.dataconsumer.client;

import org.sample.dataconsumer.config.ApplicationConfig;
import org.sample.dataconsumer.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = ApplicationConfig.DATA_PROVIDER_SERVICE_NAME + "/user",
	fallbackFactory = UserFeignClientFallbackFactory.class)
public interface UserFeignClient {

	@GetMapping("/{id}")
	public User getUser(@PathVariable("id") String id);

}
